/*Replication for "Bridging the Gap: The Relationship between INGO Activism and Human Rights Indicators" - Journal of Human Rights*/

/*Load Dataset*/

use "/Users/suparna58/Dropbox/Dataverse/JHR/Dataset_Bridging the Gap.dta"

/*Summary statistics*/

summ nhrc crpolice hrw ai muslim policepopperlakh enpv  polpart literacy disturbed sgdpgrowth  lagpop murder polcomp
corr nhrc crpolice hrw ai

/*Main Results - Table 1*/
nbreg nhrc polpart2 muslim2 police2 disturbed  logpop enpv  sdpgrowth2 literacy2, cluster(state) robust
nbreg crpolice polpart2 muslim2 police2 disturbed  logpop enpv  sdpgrowth2 literacy2, cluster(state) robust
nbreg ai polpart2 muslim2 police2 disturbed  logpop enpv  sdpgrowth2 literacy2, cluster(state) robust
nbreg hrw polpart2 muslim2 police2 disturbed  logpop enpv  sdpgrowth2 literacy2, cluster(state) robust

/*Marginal Effects*/
nbreg nhrc polpart2 muslim2 police2 disturbed  logpop enpv  sdpgrowth2 literacy2, cluster(state) robust
margins, at(polpart2=(0.42 (0.05) 0.9))
marginsplot, recast(line) recastci(rarea) xtitle("Level of Political Participation in a State") ytitle("Predicted Number ofReports - NHRC") title ("Marginal effect of political participation on NHRC reports") scheme(s2mono) graphregion(fcolor(white))

nbreg crpolice policepopperlakh enpv polpart2 sdpgrowth2 literacy2 disturbed muslim2 logpop, cluster(state) robust
margins, at(policepopperlakh=(150(100)1050))
marginsplot, recast(line) recastci(rarea) xtitle("Police Strength in a State, per 100,000 Population ") ytitle("Predicted number of charges of violations against police") title ("Marginal effect of police strength on predicted count of charges of violations against police") scheme(s2mono) graphregion(fcolor(white))


/*Regressions with Regional Dummies - Appendix*/
nbreg nhrc polpart2 muslim2 police2 disturbed  logpop enpv  sdpgrowth2 literacy2 north south east west, cluster(state) robust
nbreg crpolice polpart2 muslim2 police2 disturbed  logpop enpv  sdpgrowth2 literacy2 north south east west, cluster(state) robust
nbreg ai polpart2 muslim2 police2 disturbed  logpop enpv  sdpgrowth2 literacy2 north south east west, cluster(state) robust
nbreg hrw polpart2 muslim2 police2 disturbed  logpop enpv  sdpgrowth2 literacy2 north south east west, cluster(state) robust
